package com.ben.xinyue.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ben.xinyue.seckill.domain.entity.Goods;
import com.ben.xinyue.seckill.domain.vo.GoodsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: xinyue
 * @date: 2020/09/04 09:43
 * @description: 
 * @modifiedBy:
 * @version: 1.0.0
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     * 查询秒杀商品信息
     * @return 结果
     */
    List<GoodsVo> listGoodsVo();

    /**
     * 根据商品ID 查询商品详情
     * @param goodsId 商品ID
     * @return 结果
     */
    GoodsVo selectGoodsVoByGoodsId(@Param("goodsId") long goodsId);
}
